package com.leather.admin.feignclient.impl;

import com.leather.admin.feignclient.JobClient;
import com.leather.common.entity.Job;
import com.leather.common.result.CodeMsg;
import com.leather.common.result.Result;
import com.leather.common.toolkits.CollectionKit;
import org.springframework.stereotype.Component;

@Component
public class JobClientHystrix implements JobClient {
    @Override
    public Object list(int offset, int limit, String search) {
        return CollectionKit.emptyTableMap();
    }

    @Override
    public Object addJob(Job job) {
        return Result.error(CodeMsg.SERVER_OFFLINE);
    }

    @Override
    public Object deleteJob(int jobId) {
        return Result.error(CodeMsg.SERVER_OFFLINE);
    }
}
